package com.cmower.journal.cow;

import java.util.*;

/**
 * @author 沉默王二，一枚有趣的程序员
 */
public class VectorTest {
    public static void main(String[] args) {
        Vector vector;

        List<String> list = new ArrayList();
        list.add("沉默王二");
        list.add("沉默王三");
        list.add("一个文章真特么有趣的程序员");



        Iterator var3 = Collections.synchronizedList(list).iterator();

        while (var3.hasNext()) {
            String str = (String) var3.next();
            if ("沉默王二".equals(str)) {
                list.remove(str);
            }
        }

        System.out.println(list);
    }
}
